﻿
namespace Awsc.DataAcquisitionSys.Api.BackgroundServices
{
    public class AlarmRuleRunningBackgroundService : BackgroundService
    {
        private readonly IServiceScopeFactory serviceScopeFactory;

        public AlarmRuleRunningBackgroundService(IServiceScopeFactory serviceScopeFactory)
        {
            this.serviceScopeFactory = serviceScopeFactory;
        }
        protected override Task ExecuteAsync(CancellationToken stoppingToken)
        {
            using (var scope = serviceScopeFactory.CreateScope())
            {
                var serviceProvider = scope.ServiceProvider;

                return Task.CompletedTask;
            }
        }
    }
}
